package org.springframework.boot.autoconfigure.data.mongo;

import org.jongo.Jongo;
import org.jongo.MongoCollection;

public class JongoTemplate {

    private Jongo jongo;
    public JongoTemplate () {}

    public JongoTemplate(Jongo jongo){
        this.jongo = jongo;
    }

    public MongoCollection getCollection(String tableName){
       return jongo.getCollection(tableName);
    }
}
